﻿// -----------------------------------------------------------------------
// <copyright file="WebResourceConfigHelper.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace NetFramework.Web.Resources
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using NetFramework.Router.Configuration;
    using NetFramework.Configuration;
    using NetFramework.Web.Configuration;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class WebResourceConfigHelper
    {
        /// <summary>
        /// 页面配置
        /// </summary>
        public static PageInfoConfig PageInfoConfig
        {
            get { return ConfigManager.GetConfig<PageInfoConfig>(); }
        }

        /// <summary>
        /// URL配置
        /// </summary>
        public static WebsiteConfig WebsiteConfig
        {
            get { return ConfigManager.GetConfig<WebsiteConfig>(); }
        }

        /// <summary>
        /// Cookie配置
        /// </summary>
        public static CookieConfig CookieConfig
        {
            get { return ConfigManager.GetConfig<CookieConfig>(); }
        }

        /// <summary>
        /// 样式配置。
        /// </summary>
        public static CssConfig CssConfig
        {
            get { return ConfigManager.GetConfig<CssConfig>(); }
        }

        /// <summary>
        /// 脚本配置。
        /// </summary>
        public static ScriptConfig ScriptConfig
        {
            get { return ConfigManager.GetConfig<ScriptConfig>(); }
        }
    }
}
